Release 10.1A: OpenEdge Development:
Java Open Clients
ProDataObject class
OpenEdge provides a Java class,
com.progress.open4gl.ProDataObject, that maps to a row (record) in a Progress 4GL temp-table. TheProDataObjectclass extends the Java SDODataObjectclass. It maps to an 4GL temp-table row within a ProDataSet. (AProDataObjectlist maps to the entire 4GL temp-table). AProDataObjectholds its actual data as a set of column properties, where eachPropertyobject maps to a column (field) of the temp-table. Java SDODataObjectand extendedProDataObjectaccess methods allow the client to get thePropertyobject values (column data).In the 4GL, fields in a temp-table can be defined with an extent value that creates a one-dimensional array of the specified data type, with the number of elements specified by the extent. JDBC
ResultSetobjects (also supported to map temp-table parameters) do not support arrays as columns for temp-table parameters. But in a Java SDODataObject, a property's type (specified by aTypeobject) can be many-valued and this can be mapped to an array field.For more information on the Java SDO
PropertyandTypeinterfaces, see the "Using Java SDO classes to access Property meta data" section.The
com.progress.open4gl.ProDataObjectclass provides no constructor, because it is created by theProDataGraph.createProDataObject()factory method (see the "ProDataGraph class" section). It does provide the following inherited and extended methods. Among these include methods to get and set the values of column properties according to the Java data type. To identify the Java data type that matches the Progress 4GL data type of a corresponding temp-table field, see the data type mappings in Table 5–3. If you do not already know the 4GL data type of a mapped column property, you can identify it using thegetProType()method of the correspondingProDataObjectMetaDataobject. For more information, see the "ProDataObjectMetaData class" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |